<?php 
require '../../../../zb_system/function/c_system_base.php';
require '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('aymFreeFour')) {$zbp->ShowError(48);die();}
$blogtitle=$zbp->theme.'主题配置->SEO设置';
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
if(isset($_POST['Forum'])){
if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
foreach($_POST['Forum'] as $key=>$val){
$zbp->Config('aymFreeFour')->$key = $val;
}
$zbp->SaveConfig('aymFreeFour');
$zbp->ShowHint('good');
}
?>
<div id="divMain">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu"><?php aymFreeFour_SubMenu(3);?></div>  
	<div id="divMain2" class="settings">		
		<form id="form1" name="form1" method="post">	
			<table width="100%" cellspacing='0' cellpadding='0' class="tableBorder">
				<tr>
					<th width='20%'>设置项</th>
					<th width='40%'>内容</th>
					<th width='40%'>描述</th>
				</tr>	
				<tr>
					<td>
						<label for="seoON">SEO设置</label>
					</td>
					<td colspan="2">
						<input id="seoON" name="Forum[seoON]" type="text" value="<?php echo $zbp->Config('aymFreeFour')->seoON;?>" class="checkbox"/> 如果使用了关于title标题、关键词、描述的SEO工具，可以在这里关闭主题自带的SEO设置
					</td>
				</tr>		
				<tr>
					<td>
						<label for="title">首页title标题</label>
					</td>
					<td>
						<input name="Forum[title]" type="text" id="title" class="text" value="<?php echo $zbp->Config('aymFreeFour')->title;?>" />
					</td>
					<td>
						<p>自定义首页Title标题</p>
					</td>
				</tr>
				<tr>
					<td>
						<label for="keywords">首页keywords关键词</label>
					</td>
					<td>
						<input name="Forum[keywords]" type="text" id="keywords" class="text" value="<?php echo $zbp->Config('aymFreeFour')->keywords;?>" />
					</td>
					<td>
						<p>自定义首页keywords关键词</p>
					</td>
				</tr>
				<tr>
					<td>
						<label for="description">首页description描述</label>
					</td>
					<td>
						<input name="Forum[description]" type="text" id="description" class="text" value="<?php echo $zbp->Config('aymFreeFour')->description;?>" />
					</td>
					<td>
						<p>自定义首页description描述</p>
					</td>
				</tr>
				<tr>
					<td>
						<label for="separator">标题分隔符</label>
					</td>
					<td>
						<input name="Forum[separator]" type="text" id="separator" class="text" value="<?php echo $zbp->Config('aymFreeFour')->separator;?>" />
					</td>
					<td>
						<p>默认_</p>
					</td>
				</tr>

			
			</table>
			<?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?>
			<div class="clear"></div>
			<div class="submit">
				<input name="" type="Submit" class="button" value="保存"/>
			</div>
		</form>
	</div>
</div>
<?php 
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>